<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <table class="layui-table timo-detail-table">
            <colgroup>
                <col width="100px"><col>
                <col width="100px"><col>
            </colgroup>
            <tbody>
                <tr>
                    <th>主键ID</th>
                    <td th:text="${memberAgent.id}"></td>
                    <th>openid</th>
                    <td th:text="${memberAgent?.member?.openid}"></td>
                
                </tr>
                <tr>
                    <th>昵称</th>
                    <td th:text="${memberAgent?.member?.nickname}"></td>
                    <th>头像</th>
                    <td >
                    <img th:src="${memberAgent?.member?.headimg}" alt="">
                    </td>
                </tr>
                <tr>
                    <th>注册时间</th>
                    <td th:text="${memberAgent?.member.registerDate}"></td>
                    <th>代理费</th>
                    <td th:text="${memberAgent.agentMoney}"></td>
                </tr>
                <tr>
                    <th>代理城市</th>
                    <td th:text="${memberAgent?.areaname}"></td>
                    <th>电话</th>
                    <td th:text="${memberAgent?.member?.mobile}"></td>
                </tr>
                <tr>
                    <th>地址</th>
                    <td th:text="${memberAgent?.member?.address}" colspan="3"></td>
                </tr>
                <tr>
                    <th>状态</th>
                    <td th:switch="${memberAgent?.payStatus}">
                           <span th:case="0">待付款</span>
                           <span th:case="1">已支付</span></td>
                </tr>
                <tr>
                    <th>创建时间</th>
                    <td th:text="${#dates.format(memberAgent.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <th>更新时间</th>
                    <td th:text="${#dates.format(memberAgent.updateDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>